package cn.bdqn.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.bdqn.entity.Repair;
import cn.bdqn.entity.UsersAndRepair;

public interface RepairMapper {
	Integer saveRepair(Repair repair);
	List<Repair> queryAllRepairByUserid(@Param("userid")Integer userid);
	//放弃/继续报修
	Integer updateRepair(Repair repair);
	//管理报修
	List<UsersAndRepair> queryAllRepairByguan(@Param("context")String context,@Param("start")Integer start,@Param("pageSize")Integer pageSize);
	Integer queryCountRepair(@Param("context")String context);
	//处理未处理报修
	Integer updateRepairChuStatus(Repair repair);
	UsersAndRepair queryRepairByrepirid(@Param("repairid")Integer repairid);
	Integer deleteRepairByUserid(@Param("userid")Integer userid);
}
